import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "api/order/getList",
    method: "GET",
    params,
  });
}
export function changeStatus(data) {
  return request({
    url: "api/order/changeStatus",
    method: "POST",
    data,
  });
}
export function stopCzOrder(ids) {
  return request({
    url: "api/order/stopCzOrder",
    method: "POST",
    data: { ids },
  });
}
export function refundOrder(ids) {
  return request({
    url: "api/order/refundOrder",
    method: "POST",
    data: { ids },
  });
}


// export function exportChannelOrder(data) {
//   return request({
//     url: "api/order/exportChannelOrder",
//     method: "POST",
//     data,
//   });
// }
export function updateOrderProcessType(data) {
  return request({
    url: "api/order/updateOrderProcessType",
    method: "POST",
    data,
  });
}
export function orderReSubmit(data) {
  return request({
    url: "api/order/orderReSubmit",
    method: "POST",
    data,
  });
}
export function refund(data) {
  return request({
    url: "api/order/refund",
    method: "POST",
    data,
  });
}
export function getStatics(params) {
  return request({
    url: "api/order/census",
    method: "GET",
    params,
  });
}

export function sendCode(data) {
  return request({
    url: "/api/order/sendCode",
    method: "POST",
    data,
  });
}
export function validateCode(data) {
  return request({
    url: "/api/order/validateCode",
    method: "POST",
    data,
  });
}
export function setPhone(data) {
  return request({
    url: "/api/order/setPhone",
    method: "POST",
    data,
  });
}
